/**   
 * @Title: CustCapitalSystemAll.java 
 * @Package com.betterjr.modules.customer.entity 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author xuzx
 * @date 2017年12月18日 上午9:18:58  
 */
package com.betterjr.modules.customer.entity;

import java.util.List;

import com.betterjr.common.entity.BetterjrEntity;

/** 
 * @ClassName: CustCapitalSystemAll 
 * @Description: 资金管理系统json
 * @author xuzx
 * @date 2017年12月18日 上午9:18:58 
 *  
 */
public class CustCloudPlatformAll implements BetterjrEntity {

    private static final long serialVersionUID = 1L;

    private CustCloudPlatformTenant cust;

    private List<CustCloudPlatformCustom> ente;

    private CustCloudPlatformOperator user;

    public CustCloudPlatformTenant getCust() {
        return cust;
    }

    public void setCust(CustCloudPlatformTenant anCust) {
        cust = anCust;
    }

    public List<CustCloudPlatformCustom> getEnte() {
        return ente;
    }

    public void setEnte(List<CustCloudPlatformCustom> anEnte) {
        ente = anEnte;
    }

    public CustCloudPlatformOperator getUser() {
        return user;
    }

    public void setUser(CustCloudPlatformOperator anUser) {
        user = anUser;
    }

    @Override
    public String toString() {
        return "CustCapitalSystemAll [cust=" + cust + ", ente=" + ente + ", user=" + user + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (cust == null ? 0 : cust.hashCode());
        result = prime * result + (ente == null ? 0 : ente.hashCode());
        result = prime * result + (user == null ? 0 : user.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (!(obj instanceof CustCloudPlatformAll)) {
            return false;
        }
        CustCloudPlatformAll other = (CustCloudPlatformAll) obj;
        if (cust == null) {
            if (other.cust != null) {
                return false;
            }
        } else if (!cust.equals(other.cust)) {
            return false;
        }
        if (ente == null) {
            if (other.ente != null) {
                return false;
            }
        } else if (!ente.equals(other.ente)) {
            return false;
        }
        if (user == null) {
            if (other.user != null) {
                return false;
            }
        } else if (!user.equals(other.user)) {
            return false;
        }
        return true;
    }

}
